package com.zhiwang.planet.repository.datasource

import com.zhiwang.planet.mvvm.model.entity.UserDao
import javax.inject.Inject

interface UserDataSource {

//    fun getUser(userName: String): User
//
//    fun deleteUser(userName: String)
//
//    fun saveUser(user: User)
}

/**
 * 目前只有本地数据交互
 */
open class UserDataSourceImpl @Inject constructor(var userDao: UserDao) : UserDataSource {

//    override fun saveUser(user: User) {
//        userDao.addUser(user)
//    }


//    override fun deleteUser(userName: String) {
//        userDao.deleteUser(userName)
//    }

//
//    override fun getUser(userName: String): User {
//        return userDao.getUserByName(userName)
//    }


}